/*
  Program-Trapezoidal Rule

	  This class File calculate approximate curve y=f(x)
	  in the interval [X1,Xn] by the line segment p0p1
	  and so for the other interval
	     Considering the interval values Y1,Y2,...,Yn
	  are already calculated and only Trapezoidal rule
	  is applied here

	  f(x)=(h/2)[(Y0+Yn)+2(Y1+Y2+....+Y(n-1)]


  Input-
	 n
	 a
	 b
	 h


*/

class Trapezoidal
{
  int n;
  float a,b,h;
  struct node functionX;

 public float Trapezoidal(struct node  ,float ,float ,int );


}

float Trapezoidal::TrapezoidalFormula(struct node functionX ,float a,float b,int n)
 {


 }

